<style>
table tr td span{
	border: 1px solid #234589;
	cursor: pointer;
	background-color: #eee;
	border-radius:	5px;
}
</style>
      <script src="assets/jquery/jquery-ui-1.8.23.custom.min.js" type="text/javascript" charset="utf-8"></script>
      <link rel="stylesheet" href="assets/jquery/ui-themes/smoothness/jquery-ui-1.8.23.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
<div class="content-box">
	<!-- Start Content Box -->
	<div class="content-box-header">
		<h3>用户/用户组权限管理</h3>
		<ul class="content-box-tabs">
			<li><a href="#tab1" class="default-tab">所有权限规则</a></li>
			<li><a href="#tab2">编辑</a></li> <{*编辑数据库相关*}>
			<li><a href="#tab3">添加</a></li>
		</ul>
	</div>
	<!-- End .content-box-header -->
	<!-- Start .content-box-content -->
	<div class="content-box-content">
		<div class="tab-content default-tab" id="tab1">
			<table>
				<thead>
					<tr>
						<th>权限名</th>
						<th>用户允许列表</th>
						<th>用户禁止列表</th>
						<th>部门是允许列表</th>
						<th>部门是禁止列表</th>
					</tr>
				</thead>
				<tbody>
				<{foreach from=$privilegeList item=privilegeItem}>
					<tr pid = "<{$privilegeItem.privilege_id}>">
						<td><{$privilegeItem.name}></td>
							<td>
									<{foreach from=$privilegeItem.employee.allow item=employeeItem}>
										<span><{$employeeItem.realname}></span>
									<{/foreach}>
							</td>
							<td>
									<{foreach from=$privilegeItem.employee.disallow item=employeeItem}>
										<span><{$employeeItem.realname}></span>
									<{/foreach}>
							</td>
							<td>
									<{foreach from=$privilegeItem.department.allow item=departmentItem}>
										<span><{$departmentItem.name}></span>
									<{/foreach}>
							</td>
							<td>
									<{foreach from=$privilegeItem.department.disallow item=departmentItem}>
										<span><{$departmentItem.name}></span>
									<{/foreach}>
							</td>
					</tr>
					<{/foreach}>
					<tr>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tbody>
			</table>
<!-- 			<div style="width: 500px; height: 200px; background: red;">ALLOW BOX</div> -->
<!-- 			<div style="width: 500px; height: 200px; background: black;">DISALLOW BOX</div> -->
<!-- 			<input type="submit" value="添加新的规则" onclick="new_dialog()"/> -->
			<a href="http://10.202.1.109/workForYangtzeu/administrator/index.php?c=privilegeManager&a=add">添加新的权限规则</a>
		</div>
		<div class="tab-content" id="tab2"></div>
		<div class="tab-content" id="tab3"></div>
	</div>
	<!-- End .content-box-content -->
</div>
<!-- End .content-box -->